/**
 * Created by chengming on 18/4/16.
 * version 1.0
 */
"use strict";

const logger = require('./logger');

module.exports = function(){
	let type = 0;
	for(let argv of process.argv){
		if(argv.indexOf('type') != -1){
			logger.debug(argv);
			type =  /type\s*=\s*(\d+)/.exec(argv)[1];
		}
	}
	return type;
}